<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:composite="http://java.sun.com/jsf/composite">

    <h:head>
        <f:facet name="first">
            <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
        </f:facet>
    </h:head>

    <composite:interface>
        <composite:attribute name="documento" type="java.lang.String"  />
        <composite:attribute name="esCodigo" type="java.lang.Boolean" default="true"  />
        <composite:attribute name="codigo" type="java.lang.String"  />
        <composite:attribute name="esVersion" type="java.lang.Boolean" default="false"  />
        <composite:attribute name="version" type="java.lang.String" default="0" />
    </composite:interface>

    <composite:implementation>

        <p:panelGrid style="margin-bottom: 10px">
            <p:row>
                <p:column  style="padding: 0">
                    <h:graphicImage id="imgLogo" value="/logo/#{BKSession.empresa.logoDoc}" style="width: 90px;height: auto"  />
                </p:column>
                <p:column style="width: 480px;padding: 0 10px"  >
                    <h:outputText value="#{BKSession.empresa.razonSocial}" styleClass="negrita" style="font-size: 13px" /><br />
                    <h:outputText value="RUC: #{BKSession.empresa.ruc}" styleClass="negrita" style="font-size: 9px" />
                </p:column>
                <p:column  style="padding: 0">
                    <h:outputText value="#{BKSession.empresa.direccionLegal}" styleClass="negrita" style="font-size: 9px" />
                </p:column>
            </p:row>
            <p:row>
                <p:column colspan="3" rendered="#{cc.attrs.esCodigo}" >
                    <div style="margin: 0 auto;text-align: center" >
                        <h:outputText value="#{cc.attrs.documento}:" styleClass="negrita" style="font-size: 13px" />
                        <h:outputText value=" &nbsp;#{cc.attrs.codigo}" style="font-size: 13px" />

                        <br />
                        <h:outputText value="VERSIÓN: &nbsp;#{cc.attrs.version}" styleClass="negrita" style="font-size: 9px"
                                      rendered="#{cc.attrs.esVersion}"/>
                    </div>
                </p:column>
            </p:row>
        </p:panelGrid>


    </composite:implementation>

</html>